import React, { Component } from 'react'

export default class Hello extends Component {
  shouldComponentUpdate (nextProps, nextState) {
    let flag = true
    for (let key in nextProps) {
      if (nextProps[key] != this.props[key]) {
        flag = false
        return
      }
      return !flag
    }
  }

  componentDidUpdate (prevProps, prevState) {
    console.log('update')
  }
  render () {
    return (
      <div>

      </div>
    )
  }
}
